Repository navigation
Conversation
…d semantic colors The root font size was 18px, so every Tailwind size rendered on a fraction (13.5, 15.75, 20.25, 27px) and spacing on a 4.5px grid; pages added their own arbitrary sizes and raw palette colors on top. The root is back to the browser's 16px and src/app/tokens.css defines the system: - a seven-step ramp (13, 15, 16, 18, 20, 24, 32px), each with a fixed line height on the 4px grid, three weights, and semantic text styles (text-page-title, text-section-title, text-body, text-caption, text-data, text-numeric, text-display); - radii (4, 6, 8, 12px), two elevations for floating surfaces; - semantic colors for surfaces, lines, text and status (good, warn, bad, info, severe, done, accent) as --ch-* variables named in @theme, ready for a light theme; src/lib/tokens.ts mirrors them for charts and QR codes. The UI lint fails an arbitrary font size, an off-ramp weight, an arbitrary or off-scale padding, margin or gap, a raw hex color outside the token files, and a tokens.ts value that drifts from tokens.css; palette classes are counted against a baseline that only goes down. A rare real case is allowed with a ui-lint-allow comment that says why. The shell and every shared component move onto the tokens; buttons and fields share one height and radius; PageHeader draws the one title style and the first block under it sits 24px below on every page. Pages under src/app move in their own change (TOKENS_LATER in the lint). DESIGN.md is the guide, and e2e/design-tokens.spec.ts checks what renders on the shell and three pages at 1440 and 375 wide.
…e page column Section and settings tabs keep the 44px touch height below md: now that the root is 16px. The combobox trigger matches the 36px field height. The settings column takes the one page width, so its left edge lines up with every other page. The lint and the class rewrite read data-attribute variants and the trailing important mark. Specs that matched palette class names match the semantic ones; the phone menu test closes the full-screen sheet with its Close button.
Pages under src/app use the semantic colors, the type ramp and the spacing scale: palette classes become their roles (text-fg-muted, border-line, bg-warn-soft), arbitrary sizes and spacing move to the nearest step, cards pad 16px with an 8px radius, and charts read their colors and tick size from src/lib/tokens.ts. The lint now holds every page to the tokens except Pull requests and For you, which another change is rebuilding.
…kens Inline code draws at the caption size instead of 0.9em of its line, so it never lands between ramp steps; bold text in prose is semibold. The token rules cover src/app/foryou/ from the start, and DESIGN.md spells out row titles, group headers, rail numbers and button sizes in lists.
# Conflicts: # dashboard/scripts/ui-lint.mjs
# Conflicts: # dashboard/src/components/command-palette.tsx
# Conflicts: # dashboard/src/app/inbox/page.tsx
…sentence case From the review: dark ink on a status fill (a check on green, a badge count on red) maps to fg-inverse instead of the status text color; a mostly opaque status fill used as a dot or a moving bar stays a solid mark; sticky bars and headers keep their opaque background; a hover that landed on the same token as its base moves one step (text-accent to accent-strong, the sign-in button from accent-emphasis to accent-solid). The filled accent button uses accent-emphasis, deep enough for white text. Uppercase overlines become sentence-case labels, headings become section titles, and the lint fails an uppercase class. The spacing rule checks gap-x and gap-y, and token-drift points at the right line.
… use the elevation tokens The same corrections as the shared components: dark ink on a status fill maps to fg-inverse, mostly opaque fills used as marks and timeline bars stay solid, sticky bars and overlays keep an opaque background, and hover states that landed on their base token move one step. Floating surfaces on pages use shadow-popover.
There was a problem hiding this comment.
✅ Approved with notes: nothing blocks the merge; 4 notes below are for a look.
Why approved: nothing blocks (no required rule broken, no failing check, no shown defect, no unproven critical path); 4 suggestions.
Details: PR Overview · 🎯 Risk · 🧪 Verification · Additional findings
PR Overview
Moves every dashboard page except the Pull requests pages onto the design tokens (type ramp, 4px spacing, radii, semantic colors), and extends the UI lint so it holds pages to them.
Changes
- Palette classes on pages become semantic roles (text-fg-muted, border-line, bg-surface, bg-warn-soft, text-done).
- Cards share one shape, and off-ramp sizes, off-scale spacing and font-bold move to the ramp and scale.
- Charts and the QR code read their colors from src/lib/tokens.ts.
- ui-lint gains the type-ramp, spacing-scale, raw-hex, radius-scale and token-drift rules, plus a raw-color report with a baseline.
- Allow-list entries and e2e specs follow the renamed classes.
- Palette classes (zinc, emerald, amber, blue and others) become semantic roles such as text-fg-muted, border-line, bg-surface, bg-warn-soft and text-done
- Cards share one shape, and off-ramp sizes and off-scale spacing move to the nearest step
- Charts on Analytics, Learning, Code graph and Settings read their grid, cursor, tick, legend and series colors from src/lib/tokens.ts
Reviewed Changes
300 changed files.
Show a summary per file
| File | Description |
|---|---|
dashboard/DESIGN.md |
New design-system doc covering type, spacing, radii, colors, elevation and the lint. |
dashboard/e2e/analytics.spec.ts |
Trend colors are asserted as text-bad and text-good. |
dashboard/e2e/data-sources.spec.ts |
The phone menu test closes the sheet with its Close button instead of a backdrop click. |
dashboard/e2e/design-tokens.spec.ts |
New spec checking rendered type ramp, weights, page title, header gap and shell spacing and radii. |
dashboard/e2e/jira-app-update.spec.ts |
The quiet line is asserted with text-fg-muted. |
dashboard/e2e/logs-stopped.spec.ts |
Severity chip classes are asserted with text-bad. |
dashboard/e2e/security.spec.ts |
The selector for an error-colored element is now .text-bad. |
dashboard/scripts/ui-lint-allow.json |
Allow-list text now matches the semantic class names (bg-accent-emphasis, border-info-line). |
dashboard/scripts/ui-lint.mjs |
Adds the design-token rules, an escape hatch comment, the token-drift check and the raw-color baseline report. Low-contrast now also… |
dashboard/src/app/admin/page.tsx |
Palette classes become semantic tokens. The new-teams bars switch to bg-accent-soft. |
dashboard/src/app/admin/queue/page.tsx |
Cards and text move to line, surface, inset and fg tokens. |
dashboard/src/app/admin/self-host/page.tsx |
Tiles, trend marks (solid info and good) and install rows move to tokens. |
dashboard/src/app/admin/tickets/page.tsx |
Label and hint text move to fg tokens. |
dashboard/src/app/alerts/detail/page.tsx |
Text colors move from zinc-200/400 to text-fg and text-fg-muted. |
dashboard/src/app/alerts/page.tsx |
The untitled-alert placeholder uses text-fg-muted. |
dashboard/src/app/analytics/decisions.tsx |
Link and button colors move to semantic tokens. |
dashboard/src/app/analytics/page.tsx |
Chart grid, cursor and legend read CHART; cards, text and status colors move to tokens. |
dashboard/src/app/analytics/security.tsx |
Chart grid, cursor and legend read CHART; card and link colors move to tokens. |
dashboard/src/app/analytics/token-use.tsx |
Chart colors and the stacked-bar stroke come from CHART and TOKENS; text and cards move to tokens. |
dashboard/src/app/app-map/build-status.tsx |
Step badges, text and the map sketch use semantic colors. |
dashboard/src/app/app-map/map-frame.tsx |
Text, fullscreen background and iframe border use semantic tokens. |
dashboard/src/app/app-map/page.tsx |
Palette classes become text-fg and text-fg-muted; the overline loses uppercase and tracking. |
dashboard/src/app/audit/page.tsx |
Filter labels use text-fg. |
dashboard/src/app/authorize/page.tsx |
Consent page moves to semantic text colors, text-good for the checks and accent-accent-solid for the checkboxes. |
dashboard/src/app/chat/answer.tsx |
Answer, source card and activity line move to tokens; arbitrary sizes and margins move to the ramp and scale. |
dashboard/src/app/chat/composer.tsx |
Composer surface, chips, buttons and mention menu move to tokens; shadows move to shadow-popover. |
dashboard/src/app/chat/page.tsx |
Chat page text, buttons, skeletons and question bubble move to tokens. |
dashboard/src/app/chat/thread-list.tsx |
Thread list rows, search field and menus move to tokens; the kbd and sender sizes move to text-xs. |
dashboard/src/app/connect/page.tsx |
Text colors move from zinc to fg, fg-muted and fg-secondary. |
dashboard/src/app/connections/page.tsx |
Row text and the expanded panel use semantic tokens; bg-inset replaces bg-zinc-950/40. |
dashboard/src/app/data-sources/activity/page.tsx |
The footnote uses text-fg-muted. |
dashboard/src/app/data-sources/connect/aws/page.tsx |
Cards and text move to tokens; card padding goes from p-5 to p-4. |
dashboard/src/app/data-sources/connect/page.tsx |
Wizard steps move to tokens, with sentence-case panel titles and token-based chips. |
dashboard/src/app/data-sources/connect/reader/page.tsx |
Intro text and the checkbox label move to tokens. |
dashboard/src/app/data-sources/page.tsx |
Palette classes become tokens on the add-source panel, source rows, setup progress list and the what-we-store panel. Padding and gap move… |
dashboard/src/app/data-sources/tools/new/page.tsx |
Form legends, fieldsets, checkbox accent and hint text move to tokens. |
dashboard/src/app/data-sources/tools/page.tsx |
Inline code, the empty state and the inputs list move to text-fg tokens. |
dashboard/src/app/data-sources/tools/tool/page.tsx |
The approval card, Try it, Versions and Recent runs sections move to tokens, with the card padding set to p-4. |
dashboard/src/app/foryou/customize.tsx |
Uppercase overlines become text-section-title headings; row and radio colors move to tokens. |
dashboard/src/app/foryou/give-sheet.tsx |
The confirm button, plan preview headings, repo chips and callout move to semantic info, good and fg tokens. |
dashboard/src/app/foryou/page.tsx |
For you page: status dots, quiet state, Later list, link-Jira and connect cards, and modals moved to semantic color classes. The scroll… |
dashboard/src/app/foryou/parts.tsx |
Shared For you pieces (Section, Card, GroupHead, NeedRow, FitBadge, SuggestionBlock, WithdrawnRow and others) moved to semantic tokens.… |
dashboard/src/app/globals.css |
Imports tokens.css, drops the 18px root size, adds the header-gap rule and a semibold rule for b and strong, and replaces raw hex with… |
dashboard/src/app/graph/explorer.tsx |
Node fills, edge strokes and legend styling use TOKENS and semantic classes. |
dashboard/src/app/graph/page.tsx |
Palette classes become semantic color classes. |
dashboard/src/app/health/page.tsx |
Overall and check cards use the status soft and line tokens. |
dashboard/src/app/inbox/answer/page.tsx |
The section card uses the shared card tokens. |
dashboard/src/app/inbox/fix-sheet.tsx |
Failing-check rows use the bad soft and line tokens. |
dashboard/src/app/inbox/pr/page.tsx |
Verdict, check and diff colors use semantic tokens, and the sticky action bar keeps an opaque canvas background. |
dashboard/src/app/infrastructure/live-resources.tsx |
Zinc text classes become fg-muted and fg-secondary |
dashboard/src/app/infrastructure/page.tsx |
Severity colors become text-bad, text-warn and text-fg-muted; other text uses fg roles |
dashboard/src/app/knowledge/base-form.tsx |
Label and text colors move to tokens; checkboxes use accent-good-solid |
dashboard/src/app/knowledge/base/page.tsx |
Cards, problem callout, connection rows and drop overlay move to tokens, with rounded-lg and p-4 cards and shadow-popover on the overlay… |
dashboard/src/app/knowledge/bedrock/page.tsx |
Palette classes move to tokens, with accent-accent-solid on checkboxes and radios and hover:bg-raised on rows |
dashboard/src/app/knowledge/page.tsx |
Knowledge page cards, skeleton, empty state and health text moved to semantic tokens and the shared card radius. |
dashboard/src/app/layout.tsx |
Body uses bg-canvas and text-fg. |
dashboard/src/app/learning/examples.tsx |
Example rows, tags, links and detail panel moved to semantic tokens. |
dashboard/src/app/learning/health.tsx |
Loop cards and the quiet-state callout use bad/inset tokens. |
dashboard/src/app/learning/outcomes.tsx |
Lesson, guide and reviewer cards moved to tokens. |
dashboard/src/app/learning/page.tsx |
Chart series, grid, cursor, tick and legend colors come from tokens.ts; tooltip uses shadow-popover; text moved to tokens. |
dashboard/src/app/logs/page.tsx |
Incident and finding rows, autofix panel and hints move to semantic text, border and surface tokens; the overline loses uppercase |
dashboard/src/app/memory/page.tsx |
Agent grid, detail panel, memory cards, try-it and teach dialog use token colors |
dashboard/src/app/not-found.tsx |
Tokens for text colors; font-bold becomes semibold |
dashboard/src/app/og/[image]/route.tsx |
Adds ui-lint-allow-file lines with reasons for raw hex and type-ramp |
dashboard/src/app/page.tsx |
Runs page uses token colors; the bulk bar uses shadow-popover and an opaque raised background |
dashboard/src/app/plans/detail/criteria.tsx |
Criteria list moves to token colors and the shared surface |
dashboard/src/app/plans/detail/details.tsx |
Details disclosure moves to fg, line and control tokens. |
dashboard/src/app/plans/detail/needs.tsx |
The Needs you strip uses the severe-* tokens. |
dashboard/src/app/plans/detail/page.tsx |
Header, summary and section text and borders use the semantic tokens. |
dashboard/src/app/plans/detail/spec.tsx |
Spec empty state and part headings use the semantic tokens. |
dashboard/src/app/plans/detail/tasks.tsx |
Task checklist, form and marks use the semantic tokens, including the done, bad, severe, warn and info marks. |
dashboard/src/app/plans/detail/template-dialog.tsx |
Field label color moves to fg-muted. |
dashboard/src/app/plans/new/composer.tsx |
Stop and Send buttons use the control and inverse tokens, and the large composer gets shadow-popover. |
dashboard/src/app/plans/new/conversation.tsx |
Chat messages, work line, dividers and edit box use the semantic tokens, and the user bubble radius becomes rounded-xl. |
dashboard/src/app/plans/new/draft.tsx |
Draft panel, task rows and the destination buttons use the semantic tokens. |
dashboard/src/app/plans/new/page.tsx |
Loading fallback, error banner, follow-up chips and hint text move to semantic tokens. |
dashboard/src/app/plans/new/starter.tsx |
Heading weight moves to semibold and all palette classes to roles. |
dashboard/src/app/plans/status.tsx |
State bar track uses bg-control. |
dashboard/src/app/plans/templates/page.tsx |
Delete hover uses text-bad. |
dashboard/src/app/plugins/draft/page.tsx |
Status notes use info, good and bad text tokens; body text uses fg tokens. |
dashboard/src/app/plugins/page.tsx |
Form cards use border-line bg-surface; text moves to roles. |
dashboard/src/app/plugins/plugin/page.tsx |
Pending card, diff lists and token meter use semantic colors; the uppercase overline becomes sentence case. |
dashboard/src/app/plugins/runs/page.tsx |
Definition list text uses fg-subtle and fg. |
dashboard/src/app/releases/page.tsx |
Pending banner, destination tones, failed dot and notes panel use semantic tokens. |
dashboard/src/app/reviewer/config/page.tsx |
Reviewer settings page: palette classes become semantic tokens, and the card and dot colors use the shared ones. |
dashboard/src/app/reviewer/config/stale.tsx |
Stale-PR settings: mode choice, summary lines and the radio accent use tokens. |
dashboard/src/app/reviewer/detail/page.tsx |
Review detail page: headings, finding index, rating buttons and links use tokens. |
dashboard/src/app/reviewer/finding-card.tsx |
Finding card: the place link, accent border and title use tokens. |
dashboard/src/app/reviewer/labels.tsx |
The risk text colors become text-good, text-warn and text-bad. |
dashboard/src/app/reviewer/page.tsx |
Reviewer list: review dialog, status marks and review rows use tokens. |
dashboard/src/app/reviewer/pr/page.tsx |
Auto-merge page: checklist marks, history and result text use tokens. |
dashboard/src/app/reviewer/session/sections.tsx |
Session card, activity and overview sections move from zinc, sky, emerald and red classes to semantic tokens. |
dashboard/src/app/reviewer/session/summary.tsx |
Decision card border colors, notes, checks and details panel use semantic tokens; the check command size moves from 13px to text-sm. |
dashboard/src/app/reviewer/stale/page.tsx |
Counts, hint lines and the off banner use semantic text, border and surface tokens. |
dashboard/src/app/runs/detail/agent-log.tsx |
Agent log panel: palette classes become semantic tokens; the filter chip uses bg-inverse with text-fg-inverse; the floating button uses… |
dashboard/src/app/runs/detail/page.tsx |
Run detail page: palette classes become tokens in the outcome cards, tasks card and step pipeline; the pass dots use solid status tokens. |
dashboard/src/app/runs/detail/run-activity.tsx |
Tone dots, links, loading and empty states and the activity list move to semantic tokens. |
dashboard/src/app/runs/detail/run-outputs.tsx |
Error and loading text, list card and focused row use tokens; the report iframe uses bg-inverse instead of bg-white. |
dashboard/src/app/runs/detail/run-preview.tsx |
Outcome tones, links, check list and screenshot borders use tokens. |
dashboard/src/app/runs/detail/run-questions.tsx |
Question cards, evidence code chips, labels and errors use tokens. |
And 200 more files.
I read part 1: the lint changes, the allow-list and the four admin pages. I checked that the allow-list entries still match the classes in client-shell.tsx and foryou, and that tokens.css defines every semantic name used here. The lint skips src/app/prs/, so the raw-color baseline of 0 holds. One defect: a bar chart mark on the admin page now uses a 12% tint, so it will be almost invisible.
🎯 Risk: HIGH (77/100)
⚠️ Forced HIGH — auth/secrets pathdashboard/src/app/settings/sign-in/require-sso.tsx
██████████blast radius 100 — ~290 dependent refs; hottest: DESIGN.md (~25), page.tsx (~25), page.tsx (~25) · cross-repo consumers: DESIGN.md to 1 repo(s)██████░░░░sensitive area 60 — auth/secrets, sensitive-adjacent additions████░░░░░░test coverage 40 — 282 source / 18 test file(s) changed██████████size/spread 97 — 5763 lines across 300 file(s), spread 91%
FYI: on the whole picture nothing here holds the merge. Assumed: The new-teams bars at admin/page.tsx:646 should use a solid data-mark token (e.g. bg-info-solid) like the sibling self-host chart, not the 12% accent-soft tint; I will change them to a solid token and note it as an open item.
🧪 Verification
✅ Ran cd 'dashboard' && npm ci --no-audit --no-fund --workspaces=false in the sandbox: passed.
✅ Ran cd 'dashboard' && npm run typecheck in the sandbox: passed.
Not run here:
dashboard/e2e/analytics.spec.ts: packagedashboardhas no unit-test script whose runner takes one file, so the pull request's CI result stands for itdashboard/e2e/data-sources.spec.ts: packagedashboardhas no unit-test script whose runner takes one file, so the pull request's CI result stands for itdashboard/e2e/design-tokens.spec.ts: packagedashboardhas no unit-test script whose runner takes one file, so the pull request's CI result stands for itdashboard/e2e/jira-app-update.spec.ts: packagedashboardhas no unit-test script whose runner takes one file, so the pull request's CI result stands for itdashboard/e2e/logs-stopped.spec.ts: packagedashboardhas no unit-test script whose runner takes one file, so the pull request's CI result stands for itdashboard/e2e/security.spec.ts: packagedashboardhas no unit-test script whose runner takes one file, so the pull request's CI result stands for it
Additional findings
- 💬
dashboard/src/app/plans/new/conversation.tsx:183— Palette gradient stop left on a page (question, not blocking) - 💬
dashboard/src/app/runs/detail/page.tsx:1794— Pass-bar gradients still use palette colors (question, not blocking)
Was this review right? Rate it 👍 / 👎 so the reviewer learns · reply @coderhelm re-review or @coderhelm <question>
| <span | ||
| aria-hidden | ||
| className="block w-full rounded-sm bg-blue-500/70" | ||
| className="block w-full rounded-sm bg-accent-soft" |
There was a problem hiding this comment.
💬 FYI: New-teams bars use a 12% tint and will barely show (bug, not verified)
The per-day bars changed from bg-blue-500/70 to bg-accent-soft. In tokens.css --ch-accent-soft is rgb(59 130 246 / 0.12), a fill meant for chip and card backgrounds. These bars are data marks on the dark surface, so they are almost invisible. The PR says marks stay solid, and the sibling chart in self-host/page.tsx uses bg-info-solid and bg-good-solid. The opacity: 0.25 on empty days dims the zero bars further, so days with data and days without become hard to tell apart.
FYI, not a block: on the whole picture this is not a named correctness, security or data-loss problem to hold the merge on.
| className="block w-full rounded-sm bg-accent-soft" | |
| className="block w-full rounded-sm bg-accent-solid" |
| const TOKEN_FILES = new Set(["src/app/tokens.css", "src/lib/tokens.ts"]); | ||
| /** | ||
| /** | ||
| * Files the token rules skip for now: the Pull requests pages, which another |
There was a problem hiding this comment.
💬 Nit: Doubled comment opener (style)
There is a stray extra /** line above the TOKENS_LATER doc comment. It is harmless, but it is leftover text and can go.
Summary
Moves every dashboard page onto the design tokens from #551, so the whole product reads as one: one type ramp, the 4px spacing scale, the radii and the semantic colors. Stacked on #551. The Pull requests pages (
src/app/prs/) stay as they are while #549 rebuilds the Overview; For you moved in #551.Changes
src/app/: palette classes become their roles (text-fg-muted,border-line,bg-surface,bg-warn-soft,text-done), arbitrary and off-ramp sizes move to the ramp, off-scale padding, margin and gap move to the nearest step, andfont-boldbecomes semibold.rounded-lg border border-line bg-surface p-4on every page (cards were 16px, 20px or 12px-radius before).src/lib/tokens.ts; Learning's five series are tokenschart-1tochart-5.text-fg-inverse; fills used as marks or timeline bars stay solid; sticky bars and overlays keep an opaque background; hover states that landed on their base token move one step; floating surfaces useshadow-popover.ui-lint-allow-filereason (it is drawn outside the page).src/app/prs/.text-emerald-400,text-zinc-400,text-red-300,text-rose-400) match the semantic ones.Verification
npm run lint,npm run typecheck,npm run build, the docs build, the text guards, and the full Playwright suite against the static build.src/app/prs/), arbitrary font sizes from 18 to 0, raw hex outside the token files only in the four files that say why.